package com.hunliji.monitor.web.controller.cloud;

import com.hunliji.common.response.ResponseData;
import com.hunliji.monitor.web.facade.AdvertiseConsumeFacade;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 广告的测试
 * @author wuchen
 */
@RestController
@RequestMapping(value = "/cloudApi/ad/test")
public class AdvertiseTestCloudController {
    @Resource
    private AdvertiseConsumeFacade advertiseConsumeFacade;

    @GetMapping("/logTodayAndYesterdayConsume")
    public ResponseData logTodayAndYesterdayConsume(){
        advertiseConsumeFacade.logTodayAndYesterdayConsume();
        return ResponseData.success(null);
    }
}
